<!DOCTYPE html>
<head xmlns:v-bind="http://www.w3.org/1999/xhtml" >
    <meta charset="UTF-8">
    <title>demo17_3-vue混入,全局注入</title>
  <script src="./js/vue.min.js"></script>
  <script src="./js/vue-router.js"></script>
</head>

<body>


</body>

<script type="application/javascript">

 Vue.mixin({
   created: function () {
     var myOption = this.$options.myOption;
     if(myOption){
       document.write(myOption);
     }
   }
 });
 new Vue({
   myOption: 'hello!'
 })

</script>
</html>
